package cn.topevery.garden.entity.po;

import cn.topevery.garden.framework.base.BaseEntity;
import hw.topevery.framework.annotation.DbTable;
import hw.topevery.framework.annotation.DbTableField;
import hw.topevery.framework.enums.DbTypeEnum;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 
 *
 * @author code-generate
 * @date 2022-02-23
 */
@Data
@DbTable(tableName = "t_equipment")
public class Equipment extends BaseEntity {
        /**
     * 设备名称
     */
    @DbTableField(columnName = "c_name", dbType = DbTypeEnum.VARCHAR)
    public String name ;

    /**
     * 设备编号
     */
    @DbTableField(columnName = "c_code", dbType = DbTypeEnum.VARCHAR)
    public String code ;

    /**
     * 所属公司
     */
    @DbTableField(columnName = "c_company_id", dbType = DbTypeEnum.VARCHAR)
    public String companyId ;

    /**
     * 所属公司
     */
    @DbTableField(columnName = "c_company_name", dbType = DbTypeEnum.VARCHAR)
    public String companyName ;

    /**
     * 所属标段
     */
    @DbTableField(columnName = "c_section_id", dbType = DbTypeEnum.VARCHAR)
    public String sectionId ;

    /**
     * 所属标段
     */
    @DbTableField(columnName = "c_section_name", dbType = DbTypeEnum.VARCHAR)
    public String sectionName ;

    /**
     * 设备品牌
     */
    @DbTableField(columnName = "c_mark", dbType = DbTypeEnum.VARCHAR)
    public String mark ;

    /**
     * 设备品牌
     */
    @DbTableField(columnName = "c_gps_code", dbType = DbTypeEnum.VARCHAR)
    public String gpsCode ;

    /**
     * 备注
     */
    @DbTableField(columnName = "c_desc", dbType = DbTypeEnum.VARCHAR)
    public String desc ;

    /**
     * 审核状态(0：未提交，1：待审核, 2：已审核)
     */
    @DbTableField(columnName = "c_check_status", dbType = DbTypeEnum.SMALLINT)
    public Integer checkStatus ;

    @DbTableField(columnName = "c_call_status", dbType = DbTypeEnum.SMALLINT)
    public Integer callStatus ;

    /**
     * 所属样点id
     */
    @DbTableField(columnName = "c_point_id", dbType = DbTypeEnum.VARCHAR)
    public String pointId;

    /**
     * 所属样点名
     */
    @DbTableField(columnName = "c_point_name", dbType = DbTypeEnum.VARCHAR)
    public String pointName;

    @DbTableField(columnName = "c_result", dbType = DbTypeEnum.INTEGER)
    private Integer result;

    @DbTableField(columnName = "c_suggest", dbType = DbTypeEnum.VARCHAR)
    private String suggest;

    @DbTableField(columnName = "c_check_time", dbType = DbTypeEnum.TIMESTAMP)
    private LocalDateTime checkTime;

    @DbTableField(columnName = "c_checker_id", dbType = DbTypeEnum.INTEGER)
    private Integer checkerId;

    private String checker;
}
